{* Smarty *}
{*debug*}
<div>{$catalog_hs}</div>
<br/>
<div>
    <form method="POST"  name="catalog_name" action="{$url_location}" >
    Select Catalog:
    {if $folder_locations_empty != 'Y'}
    <select name="parent_id" onchange="document.catalog_name.submit()"> 
    {foreach from=$folder_locations item=folder key=key}
        <option value="{$folder.id}" {if $cur_catalog eq $folder.id}selected{/if}>{$folder.title}</option>
    {foreachelse}
        <option >Root</option>
    {/foreach}
    </select>
    </form>
    {else}
    <font class='red'> You must create a catalog before adding a product </font> 
    </form>
    {/if}
</div>
<br/>
    {if $folder_locations_empty != 'Y'}
<form method="POST" action="{$action_url}" id="sibling_form" >
{$productlist}
{$sibling}
<input type='hidden' name='catalog_id' value='{$cur_catalog}'>
</form>
<br/>
<form method='post' action='{$add_url}'>
    <div>
        <input type='submit' value='Add Product' class="button"/>
    </div>
</form>
<br/>
<form method='post' action='{$add_url_diamond}'>
    <div>
        <input type='submit' value='Add Loose Diamond' class="button"/>
    </div>
</form>

<form method='post' action='{$check_valid}'>
<div>
<input type='hidden' name='action' value='checkvalid'>
</div>
</form>

{/if}